:root {

  --MAIN-TEXT-color: #323232;
  /* Color of text by default */
  --MAIN-TITLES-TEXT-color: #5e5e5e;
  /* Color of titles h2-h3-h4-h5 */
  --MAIN-LINK-color: #1C90F3;
  /* Color of links */
  --MAIN-LINK-HOVER-color: #167ad0;
  /* Color of hovered links */
  --MAIN-ANCHOR-color: #1C90F3;
  /* color of anchors on titles */

  --MENU-HEADER-BG-color: #fff;
  /* Background color of menu header */
  --MENU-HEADER-BORDER-color: #33a1ff;
  /*Color of menu header border */

  --MENU-SEARCH-BG-color: #fff;
  /* Search field background color (by default borders + icons) */
  --MENU-SEARCH-BOX-color: #33a1ff;
  /* Override search field border color */
  --MENU-SEARCH-BOX-ICONS-color: #a1d2fd;
  /* Override search field icons color */

  --MENU-SECTIONS-ACTIVE-BG-color: #fff;
  /* Background color of the active section and its childs */
  --MENU-SECTIONS-BG-color: #fff;
  /* Background color of other sections */
  --MENU-SECTIONS-LINK-color: #000;
  /* Color of links in menu */
  --MENU-SECTIONS-LINK-HOVER-color: #00BFFF;
  /* Color of links in menu, when hovered */
  --MENU-SECTION-ACTIVE-CATEGORY-color: blue;
  /* Color of active category text */
  --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff;
  /* Color of background for the active category (only) */

  --MENU-VISITED-color: #33a1ff;
  /* Color of 'page visited' icons in menu */
  --MENU-SECTION-HR-color: #20272b;
  /* Color of <hr> separator in menu */

}

body {
  color: var(--MAIN-TEXT-color) !important;
}

textarea:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
select[multiple=multiple]:focus {
  border-color: none;
  box-shadow: none;
}

h1 {
  font-size: 2.5rem;
}

h2,
h3,
h4,
h5 {
  color: var(--MAIN-TITLES-TEXT-color) !important;
}

a,
a.active {
  color: var(--MAIN-LINK-color);
}

.anchor {
  color: var(--MAIN-ANCHOR-color);
}

a:hover {
  color: var(--MAIN-LINK-HOVER-color);
}

#sidebar ul li.visited>a .read-icon {
  color: var(--MENU-VISITED-color);
}

#body a.highlight:after {
  display: block;
  content: "";
  height: 1px;
  width: 0%;
  -webkit-transition: width 0.5s ease;
  -moz-transition: width 0.5s ease;
  -ms-transition: width 0.5s ease;
  transition: width 0.5s ease;
  background-color: var(--MAIN-LINK-HOVER-color);
}

#sidebar {
  background-color: var(--MENU-SECTIONS-BG-color);
}

#sidebar #header-wrapper {
  background: var(--MENU-HEADER-BG-color);
  color: var(--MENU-SEARCH-BOX-color);
  border-color: var(--MENU-HEADER-BORDER-color);
}

#sidebar .searchbox {
  border-color: var(--MENU-SEARCH-BOX-color);
  background: var(--MENU-SEARCH-BG-color);
}

#sidebar ul.topics>li.parent,
#sidebar ul.topics>li.active {
  background: var(--MENU-SECTIONS-ACTIVE-BG-color);
}

#sidebar .searchbox * {
  color: var(--MENU-SEARCH-BOX-ICONS-color);
}

#sidebar a {
  color: var(--MENU-SECTIONS-LINK-color);
}

#sidebar a:hover {
  color: var(--MENU-SECTIONS-LINK-HOVER-color);
}

#sidebar ul li.active>a {
  background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color);
  color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important;
}

#sidebar hr {
  border-color: var(--MENU-SECTION-HR-color);
}

.toc {
  position: unset;
  width: auto;
  border-left: none;
}

.toc .wrapper {
  margin-left: 20px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0 5px;
}

.toc ul li a {
  color: var(--MENU-SECTIONS-LINK-color);
}

.toc h1,
.toc h2,
.toc h3,
.toc h4,
.toc h5,
.toc h6 {
  font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  color: #222;
}

.toc ul li a.active {
  color: var(--MAIN-LINK-color);
}

.toc header {
  padding-right: 15px;
}

#body-inner {
  width: 100%;
}

.featherlight .featherlight-image {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  h1 {
    font-size: 3.25rem;
  }

  #body-inner {
    width: calc(100% - 300px);
  }

  .toc {
    position: fixed;
    top: 130px;
    right: 30px;
    border-left: thin solid #ccc;
  }

  #TableOfContents {
    max-height: calc(100vh - 220px);
  }
}